<template>
	<view class="address_list">
		<view v-for="item in list" :key="item.id" class="item">
			<view class="info">
				<view class="top">
					<view class="name">{{item.name}}</view>
					<view class="tel">{{item.tel}}</view>
				</view>
				<view class="dis">{{item.address}}</view>
			</view>
			<view class="tag">默认</view>
			<view class="operation">
				<navigator url="../edit/edit">
					<u-icon name="edit-pen-fill" color="#c55a5c" size="24"></u-icon>
				</navigator>
				<u-icon name="close" color="#ccc" size="24"></u-icon>
			</view>
		</view>
		<view class="button">
			<navigator url="../add/add">
				<u-button color="#c55a5c" size="small" text="新建收货地址"></u-button>
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					{ id: 1, name: '黄渤', tel: '15863008280', address: '山东省青岛市城阳区春阳路169号盈园国际商务中心516室' },
					{ id: 2, name: '张艺兴', tel: '15863008280', address: '湖北省长沙市芙蓉区重庆中路12号' },
					{ id: 3, name: '罗志祥', tel: '15863008280', address: '山东省济南市历下区长沙路320号' },
					{ id: 4, name: '黄渤', tel: '15863008280', address: '山东省青岛市城阳区春阳路169号盈园国际商务中心516室' },
					{ id: 5, name: '张艺兴', tel: '15863008280', address: '湖北省长沙市芙蓉区重庆中路12号' },
					{ id: 6, name: '罗志祥', tel: '15863008280', address: '山东省济南市历下区长沙路320号' },
					{ id: 7, name: '黄渤', tel: '15863008280', address: '山东省青岛市城阳区春阳路169号盈园国际商务中心516室' },
					{ id: 8, name: '张艺兴', tel: '15863008280', address: '湖北省长沙市芙蓉区重庆中路12号' },
					{ id: 9, name: '罗志祥', tel: '15863008280', address: '山东省济南市历下区长沙路320号' },
				]
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f4f8f7;

		.address_list {
			width: 100%;
			margin-top: 20rpx;
			padding-bottom: 100rpx;

			.item {
				padding: 25rpx;
				margin-bottom: 20rpx;
				display: flex;
				justify-content: space-between;
				background-color: white;

				.info {
					width: 440rpx;
					height: 100%;

					.top {
						display: flex;
						justify-content: space-between;
						font-size: 28rpx;
					}

					.dis {
						padding-top: 36rpx;
						font-size: 24rpx;
						line-height: 60rpx;
						color: #666;
					}
				}

				.tag {
					width: 70rpx;
					height: 40rpx;
					font-size: 20rpx;
					border-radius: 10rpx;
					text-align: center;
					color: #c55a5c;
					border: 1rpx solid #c55a5c;
				}

				.operation {
					width: 100rpx;
					display: flex;
					align-items: center;
				}
			}

			.button {
				position: fixed;
				bottom: 31rpx;
				width: 710rpx;
				margin: 0 20rpx;
			}
		}
	}
</style>